<div class="mainBody evallist" ng-controller="joinCtrl">
	<span class="layui-breadcrumb" lay-separator="-">
	  <a href="">考评管理<input style="width: 0px;height: 0px" type="text" id="biao1"/></a>
	  <a><cite>考评列表</cite></a>
	</span>
	<div class="contain">
		<blockquote class="layui-elem-quote">考评列表</blockquote>
		<hr />
		<form class="layui-form">
			<!--<div class="layui-form-item">-->
			<label class="layui-form-label">班级：</label>
			<div class="layui-input-block">
				<select name="clazz" lay-ignore lay-verify="required" class="layui-input">
					<option value="">--请选择班级--</option>
					<option  ng-repeat="y in clazz track by $index" value="{{y.clazzid}}">{{y.clazzname}}</option>

				</select>

			</div>
			<!--</div>-->
			<!--<div class="layui-form-item">-->
			<label class="layui-form-label">教员：</label>
			<div class="layui-input-block">
				<select name="user" lay-ignore lay-verify="required" class="layui-input">
					<option value="">--请选择教员--</option>
					<option  ng-repeat="x in user track by $index" value="{{x.userid}}">{{x.username}}</option>

				</select>
			</div>
			<!--</div>-->
			<!--<div class="layui-form-item">-->
			<label class="layui-form-label">考评模板：</label>
			<div class="layui-input-block">
				<select name="temp" lay-ignore lay-verify="required" class="layui-input">
					<option value="">--请选择模板类型--</option>
					<option  ng-repeat="t in template track by $index" value="{{t.tempid}}">{{t.tempname}}</option>

				</select>
			</div>
			<!--</div>-->
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit lay-filter="formDemo">增加调查</button>
			</div>
		</form>
		<table class="layui-table" lay-skin="line">
			<tr>
				<td>序号</td>
				<td>调查id</td>
				<td>班级名</td>
				<td>班级类型</td>
				<td>调查教员名</td>
				<td>调查日期</td>
				<td>调查班级IP段</td>
				<td>参与人数</td>
				<td>完成人数</td>
				<td>操作</td>
			</tr>
			<tr ng-repeat="x in data track by $index">
				<td ng-bind="$index+1">1</td>
				<td >{{x.researchid}}</td>
				<td>{{x.clazz.clazzname}}</td>
				<td>{{x.clazz.clazztype.typename}}</td>
				<td>{{x.user.username}}</td>
				<td>{{x.startDate | date:'yyyy-MM-dd HH:mm:ss'}}</td>
				<td>{{x.clazz.ipaddress}}</td>
				<td>{{countMap[x.researchid][0]}}</td>
				<td>{{countMap[x.researchid][1]}}</td>

                <!--<td><input type="text" disabled name="doCount" placeholder="{{x.researchid}}"></td>-->
                <!--<td><input type="text" disabled name="finishCount" placeholder="{{x.researchid}}"></td>-->
				<td>
					<a href="javascript:;" ng-click="end(x.researchid)">结束调查</a>
					<a href="javascript:;" ng-click="delete(x.researchid)">删除调查</a>
					<a href="javascript:;" ng-click="review(x.researchid)">调查地址</a>
				</td>
			</tr>
		</table>
		<div id="pagination"></div>
	</div>
</div>